<div class="window document-view">
	<div class="title">
		View document - <?php echo $document['Document']['name']; ?>
		<?php if (!$document['Document']['blocked'] && $current_user['User']['role'] != 'spectator') : ?>
		- <a href<a href="<?php echo $html->url( array('controller' => 'documents', 'action' => 'edit', $document['Document']['id'])); ?>">Edit document</a>
		<?php endif; ?>
	</div>
	<div class="content">
		<h1><?php echo $document['Document']['name']; ?></h2>
		<div><?php echo $document['Document']['text']; ?></div>
	</div>
</div>